from django.db import models


# Create your models here.

class Teacher(models.Model):
    name = models.CharField(max_length=3, null=True)  # 姓名
    sex = models.CharField(max_length=1, null=True)  # 性别
    Date_of_birth = models.DateField()  # 出生年月
    contact = models.CharField(max_length=12)  # 联系方式
        call = models.CharField(max_length=10)  # 职称


class Students(models.Model):
    name = models.CharField(max_length=3, null=True)
    sex = models.CharField(max_length=1, null=True)
    Date_of_birth = models.DateField()
    contact = models.CharField(max_length=12)
    class_n = models.CharField(max_length=20)
    The_connection = models.ForeignKey(to=Teacher, on_delete=models.CASCADE)
